<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($_SERVER['DOCUMENT_ROOT']."/Modules/MGK20XF5/moduleconf.php");
MYDCONN();
form_pr('doc_options','','','post'); ?>
	<table  border="0" cellpadding="4" cellspacing="8">
        <tr bgcolor="#F8F8F8">
          <td bgcolor="#F2F2F2"><div align="center">
	        <img src="<?php echo $GLOBALS['GFX'];?>CentrodeCustos/invoice.png" border="0" alt="Documentos"></div></td>
          <td>Mostrar desde: <?php
		  mn_field('date','ED','Time',date("Y-m-01"),'doc_options','8','','');
		  mn_field('button','ED','View','Ver','','','','" onclick="
			replaceUrl(\'hc_contents\',\'Modules/MGK20XF5/mdocs.php?Time=\'+document.doc_options.Time.value);'); ?></td>
	    </tr>
	  </table>
	<table width="160"  border="0" cellpadding="3" cellspacing="8">
      <tr bgcolor="#ACB1CC">
        <td rowspan="6" bgcolor="#CED7DE"> 
		<img src="<?php echo $GLOBALS['GFX'];?>CentrodeCustos/Docs.png" border="0" alt="Economato"></td>
        <td>Documentação</td>
      </tr>
      <?php
    $Nav = $GLOBALS['MYD']->db_array("SELECT * FROM hcdc_types"); 
	for ($f = 1; $f <= $Nav[0]; $f++) {
		echo '<tr bgcolor="#F8F8F8"><td>';
		mn_field('button','ED','menu_1',$Nav[$f]['NAME'],'','','','" style="width:80px" onclick="replaceUrl(\'hc_contents\',\'Modules/MGK20XF5/mdocs.php?DCTP='.$Nav[$f]['REF'].'\');');
		echo '</td></tr>';
    } ?>
    </table>
	<div class="Alert">Para consultar todos os comunicados clique em comunicado no menu da esquerda.</div>
	<div class="Confirm">Comunicados com prova de conhecimento s�o marcados a verde.</div>
</form>